import 'package:flame/components.dart';
import 'package:flutter_flame/component/SpriteAnimationEntity.dart';

import '../BodyShadow.dart';

class IdleZombie extends SpriteAnimationEntity {
  Vector2 setPosition;
  late BodyShadow bodyShadow; // 阴影

  IdleZombie(super.paramEntity, {required this.setPosition});

  @override
  Future<void> onLoad() async {
    priority = zombiePriority;
    position = setPosition;
    return super.onLoad();
  }
}
